import request from '@/utils/request/index.js'
export default {
	
	
	getDemand(page,limit,tagType,tagId) {
		return request.request({
			url: '/h5/nocdemand/list',
			method: 'post',
			data: {
				page: page,
				limit: limit,
				tagType: tagType,
				tagId: tagId,
				delFlag: 0
			},
		})
	},
	queryProduct(page,limit,tagType,tagId){
		return request.request({
			url: '/h5/nocproduct/list',
			method: 'post',
			data:{
				page: page,
				limit: limit,
				tagType: tagType,//标签类型，4是产品标签
				tagId: tagId
			}
		})
	},
	saveCollect(userId,id){
		return request.request({
			url: '/h5/nocyxcollect/save',
			method: 'post',
			data: {
				userId: userId,
				type: 10,
				businessId: id
			}
		})
	},
	cancelCollect(collectId){
		return request.request({
			url: '/h5/nocyxcollect/cancelCollection',
			method: 'post',
			data: {
				collectionId : collectId
			}
		})
	},
	getTagName(id){
		return request.request({
			url: '/h5/noctag/getById',
			method: 'post',
			data:{
				id: id
			}
		})
	},
	getTagBanner(id) {
		return request.request({
			url: '/h5/noctagbanner/getTagBannerByTagId',
			method: 'post',
			data: {
				tagId: id
			}
		})
	}
}